package com.wq.common.api.model.stock;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wqc
 * @since 2021-10-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class StockSku extends Model<StockSku> {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * skuId
     */
    private Integer skuId;

    /**
     * 仓库id
     */
    private Integer wareId;

    /**
     * 商品名称
     */
    private String skuName;

    /**
     * 库存
     */
    private Integer stock;

    /**
     * 锁定库存
     */
    private Integer stockLocked;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
